Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable button tooltips with empty content #730

Merged
merged 3 commits into from
May 28, 2024

Conversation

hamed-musallam
Copy link
Contributor

We have a warning in the console from Blueprint.js when the button component is used with empty tooltip content. To prevent this, we should disable the tooltip if its content is empty, which makes sense since an empty tooltip should be avoided.

I believe Blueprint.js should disable the tooltip by default if the content is empty.

src/components/button/Button.tsx Outdated Show resolved Hide resolved
src/components/button/Button.tsx Outdated Show resolved Hide resolved
src/components/button/Button.tsx Outdated Show resolved Hide resolved
src/components/button/Button.tsx Outdated Show resolved Hide resolved
Copy link

cloudflare-workers-and-pages bot commented May 28, 2024

Deploying react-science with  Cloudflare Pages  Cloudflare Pages

Latest commit: efd6246
Status: ✅  Deploy successful!
Preview URL: https://18cf1271.react-science.pages.dev
Branch Preview URL: https://fix-button-tooltip-empty-war.react-science.pages.dev

View logs

Co-authored-by: Daniel Kostro <kostro.d@gmail.com>
@hamed-musallam hamed-musallam force-pushed the fix-button-tooltip-empty-warning branch from ff85f0c to 408e63e Compare May 28, 2024 08:28
@hamed-musallam hamed-musallam merged commit ebdd792 into main May 28, 2024
12 checks passed
@hamed-musallam hamed-musallam deleted the fix-button-tooltip-empty-warning branch May 28, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants